/*
 * General common utility routines
 */
#ifndef _UTIL_H_
#define _UTIL_H_

typedef int boolean;
#define FALSE 0
#define TRUE  1


//Logger routine - implementation flexibility.
void LOG(int sev, char* format, ...);
#define DEBUG    0
#define INFO     1
#define WARN     2
#define ERROR    3
#define CRITICAL 4

//Error report and exit.
int errexit(const char *format, ...);


#endif //_UTIL_H_
